package com.kainitram.library.declension;

import android.content.Context;
import android.util.SparseArray;

import com.kainitram.library.R;

/**
 * Helpers for declension words
 * @author Mino
 *
 */
public class DeclensionHelpers {

	private SparseArray<DeclensionWord> declensionMap = new SparseArray<DeclensionWord>();
	private final static DeclensionHelpers instance = new DeclensionHelpers();
	
	private DeclensionHelpers()
	{
		declensionMap.put(R.string.selectedCount, new DeclensionOfSelection());
	}
	
	
	public static String getWordInCorrectFormat(int wordId, int count, Context context)
	{
		return instance.declensionMap.get(wordId).getWordInCorrectFormat(count, context);
	}
}
